﻿@{
    ViewBag.Title = "Trazabilidad";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script src="@Url.Content("~/js/calendario.js")" type="text/javascript" ></script>
<script src="@Url.Content("~/js/trazabilidad.js")" type="text/javascript" ></script>
<script src="@Url.Content("~/js/ajax.js")" type="text/javascript" ></script>
<script src="@Url.Content("~/js/wick.js")" type="text/javascript" ></script>
<link href="@Url.Content("~/css/wick.css")" rel="stylesheet" type="text/css" />
<script type="text/javascript">
    var dataDependencia;
    window.onload = function () {
        cargarAutoComplete("0", "dataDependencia", "D");
    }
</script>
<form id="frmBandja" name="frmBandja" action="" method="post" style="margin: 0px;
padding: 0px;">
<center>
    <div style="width: 990px; height: 100%">
        <table cellpadding="0" border="0" cellspacing="0" width="100%">
            <tbody class="textNormal8">
                <tr class="tituloBlanco_MIDIS" align="right">
                    <td style="height: 15px;">
                        TRAZABILIDAD DEL TR&Aacute;MITE
                    </td>
                </tr>
                <tr>
                    <td>
                        <table class="tablaInterna_MIDIS"><tr><td>
                        <table width="100%" border="0">
                            <tr>
                                <td width="35%">
                                    <fieldset style="border-color: #3162A6;width='90%'" >
                                        <legend class="tituloTextNormal"><b>Solicitud</b></legend>
                                        <table border="0">
                                            <tr>
                                                <td align="center" class="tituloTextNormal">
                                                    Clase
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td class="tituloTextNormal">
                                                    Area
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td class="tituloTextNormal">
                                                    A&ntilde;o
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td class="tituloTextNormal">
                                                    Correlativo
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>@Html.DropDownList("nIdeClaseSolicitud", (IEnumerable<SelectListItem>)ViewBag.Clase)
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                    <input type="text" name="nIdeDep" id="nIdeDep" ondblclick = "javascript:limpiaCaja(this)" style="width: 35px;" value="@User.Identity.Name.Split('@')[2]" maxlength="4"
                                                                                            class="cajaTextoMayuscula" onkeypress="javascript:ValidaCaracteres();" />
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                    <input type="text" name="nAnnSolicitud" ondblclick = "javascript:limpiaCaja(this)"  id="nAnnSolicitud" size="5" value="@DateTime.Now.Year.ToString()"
                                                                                            maxlength="4" class="cajaTextoMayuscula" onkeypress="javascript:ValidaCaracteres();" />
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                    <input type="text" name="nNumCorrelativo" ondblclick="javascript:limpiaCaja(this)"
                                                        id="nNumCorrelativo" style="width: 35px;" value="" maxlength="4" class="cajaTextoMayuscula"
                                                        onkeypress="javascript:ValidaCaracteres();" />
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                    <input type="button" name="btnBuscar" id="btnBuscar" style="width: 43px;" class="boton"
                                                        value="Buscar" onclick="javascript:buscarPorNumeroSolicitud();" />
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                </td>
                                <td width="20">
                                    &nbsp;
                                </td>
                                <td width="45%">
                                    <fieldset style="border-color: #3162A6;" >
                                        <legend class="tituloTextNormal">Ver pasos de otra Area</legend>
                                        <table>
                                            <tr><td  class="tituloTextNormal">Area</td><td colspan="3"></td>
                                            </tr>
                                            <tr><td>
                                                <input alt="nIdeDepPadre" autocomplete="OFF" class="cajaTextoMayuscula wickEnabledAuto"
                                                        datasrc="dataDependencia" id="depPadre" letra="" name="depPadre" ondblclick="javascript:limpiaCaja(this);"
                                                        records="1" size="52" type="text" value="" />
                                                    <input id="nIdeDepPadre" name="nIdeDepPadre" id="nIdeDepPadre" type="hidden" value="" />
                                                    </td>
                                                    <td>
                                                    <img src="images/browse.gif" class="lupita2_MIDIS" alt="VER TIPO" onclick="javascript:mostrarDependencia();" />
                                                    </td>
                                                    <td>
                                                        <input type="button" value="Filtrar">
                                                    </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                </td>
                            </tr>
                        </table>
                        </td></tr>
                        <tr>
                            <td align="center"><div id="divReloj" style="width: 100%" />
                            </td>
                        </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table width="900px" border="1" cellpadding="5" cellspacing="0" class="tablaInterna_MIDIS">
                            <tbody>

                                <tr id="trSolicitud" style="display: none">
                                    <td>
                                        <div id="divSolicitud" style="width: 100%" />
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</center>
<div id="div0" style="display: none">
</div>
</form>
